package com.hubiao.pay.merchant.api;

import com.hubiao.pay.common.domain.BusinessException;
import com.hubiao.pay.merchant.api.dto.MerchantDTO;

/**
 * Description
 *
 * @author hubiao
 * @since 2020-10-31 22:27
 */
public interface MerchantService {


    /**
     * 根据id查询对应的商户
     *
     * @param id
     * @return
     */
    public MerchantDTO queryMerchantById(Long id);

    /**
     * 注册商户接口
     *
     * @param merchantDTO
     * @return
     */
    public MerchantDTO createMerchant(MerchantDTO merchantDTO);

    /**
     * 资质申请
     *
     * @param merchantId
     * @param merchantDTO
     * @return
     * @throws BusinessException
     */
    public MerchantDTO applyQualifications(Long merchantId, MerchantDTO merchantDTO) throws BusinessException;
}
